package com.ftx.service.task;

import com.ftx.common.util.DateUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.Date;

//@Component
public class TestTask {

    private static final Logger logger = LoggerFactory.getLogger(TestTask.class);

    TestTask(){
        System.out.println("这是构造方法");
    }

    /**
     * 紧紧打印当前执行的时间
     */
    public void printNowDate(){
        System.out.println("{} --> printNowDate find now is " + this.getClass() + DateUtils.formatDate(new Date()));
    }
}
